package tc.crase.db;

import java.awt.geom.Point2D;

public class XattrGXY extends XattrGIT {
	
	public Point2D.Double xy;
	
	public XattrGXY(int id, int gid, String gidUrl, Xobject parent, Point2D.Double xy) {
		super(id, gid, gidUrl, parent);
		
		this.xy = xy;
	}
	
	public Point2D.Double getXY() {
		return xy;
	}
	
	@Override
	public XattrGXY getAsGXY() {
		return this;
	}
	
	@Override public String getValue() { 
		return "grp=" + getId() + " xy=" + xy.x + "," + xy.y;
	}
}
